<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">添加角色</h4>
</div>
<form id="defaultForm" method="post" class="form-horizontal" action="/system/role_save">
    <div class="modal-body">

            <div class="form-group">
                <label class="col-lg-3 control-label">角色名</label>
                <div class="col-lg-5">
                    <input type="text" class="form-control" name="name" />
                </div>
            </div>

            <div class="form-group">
                <label class="col-lg-3 control-label">身份</label>
                <div class="col-lg-5">
                    <select class="form-control" name="type">
                        <option value="">选择身份</option>
                        <option th:each="parameter:${parameters}" th:text="${parameter.name}" th:value="${parameter.id}" ></option>
                    </select>
                </div>
            </div>

            <!--<div class="form-group">-->
                <!--<label class="col-lg-3 control-label">测试</label>-->
                <!--<div class="col-lg-5">-->
                    <!--<input type="text" class="form-control" name="test" />-->
                <!--</div>-->
            <!--</div>-->
    <!---->
            <!--<div class="form-group">-->
                <!--<div class="col-lg-9 col-lg-offset-3">-->
                    <!--<button type="submit" class="btn btn-primary">Sign up</button>-->
                <!--</div>-->
            <!--</div>-->

        <!--</form>-->
        <!--<div class="all-add">-->
            <!--<div class="row-add">-->
                <!--<div class="child-row-add">-->
                    <!--<label class="label-add">角色名称</label> <input class="input-add" type="text" placeholder="角色名称">-->
                <!--</div>-->

                <!--<div class="child-row-add">-->
                    <!--<label class="label-add">角色名称</label> <input class="input-add" type="text" placeholder="角色名称">-->
                <!--</div>-->
            <!--</div>-->
        <!--</div>-->
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn btn-primary">保存</button>
    </div>
</form>

<script>
    //表单初始化
    initCheck();
</script>